#include "hook.h"
#include "logger.h"

namespace nmsp
{   
    Cont::Cont(const std::string &pattern, PluginCallback pluginCallback, void *data)
    {
        this->pattern = pattern;
        this->pluginCallback = pluginCallback;
        this->server = nullptr;
        this->data = data;
    }

    Cont::~Cont()
    {
        this->pattern = "";
        this->pluginCallback = nullptr;
        this->server = nullptr;
        this->data = nullptr;
    }

    void Cont::RegisterGet(const httplib::Request &req, httplib::Response &resp)
    {
        printf("111===222===333===444===\n");
        this->pluginCallback(this, req, resp);
    }
}
